#include <testngpp/internal/TestCase.h>
#include <testngpp/internal/TestFixtureDesc.h>
#include <testngpp/internal/TestSuiteDesc.h>
#include <testngpp/internal/DataDriven.h>
#include "TestGeometry.h"

static struct TESTCASE_TestGeometry_test_45
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestGeometry_test_45()
      : TESTNGPP_NS::TestCase
        ( "Valid Geometry getArea(100.001,74.991) should be 7499"
        , "Geometry"
        , "TestGeometry"
        , 0
        , "TestGeometry.h"
        , 45)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestGeometry();
      }
      else
      {
         belongedFixture = dynamic_cast<TestGeometry*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_45()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestGeometry* belongedFixture;
} testcase_instance_TestGeometry_test_45 ;



static struct TESTCASE_TestGeometry_test_50
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestGeometry_test_50()
      : TESTNGPP_NS::TestCase
        ( "Valid Geometry getPerimeter(100.001,74.991) should be 349.98"
        , "Geometry"
        , "TestGeometry"
        , 0
        , "TestGeometry.h"
        , 50)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestGeometry();
      }
      else
      {
         belongedFixture = dynamic_cast<TestGeometry*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_50()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestGeometry* belongedFixture;
} testcase_instance_TestGeometry_test_50 ;



static struct TESTCASE_TestGeometry_test_55
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestGeometry_test_55()
      : TESTNGPP_NS::TestCase
        ( "Valid Geometry isValid(100.001,74.991) should be true"
        , "Geometry"
        , "TestGeometry"
        , 0
        , "TestGeometry.h"
        , 55)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestGeometry();
      }
      else
      {
         belongedFixture = dynamic_cast<TestGeometry*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_55()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestGeometry* belongedFixture;
} testcase_instance_TestGeometry_test_55 ;



static TESTNGPP_NS::TestCase* g_TESTCASEARRAY_TestGeometry[] = {
&testcase_instance_TestGeometry_test_45,
&testcase_instance_TestGeometry_test_50,
&testcase_instance_TestGeometry_test_55,
0
};




static struct TESTCASE_TestInvalidGeometry_test_74
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestInvalidGeometry_test_74()
      : TESTNGPP_NS::TestCase
        ( "inValid Geometry getArea(100.01,74.991) should be 0"
        , "InvalidGeometry"
        , "TestGeometry"
        , 0
        , "TestGeometry.h"
        , 74)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestInvalidGeometry();
      }
      else
      {
         belongedFixture = dynamic_cast<TestInvalidGeometry*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_74()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestInvalidGeometry* belongedFixture;
} testcase_instance_TestInvalidGeometry_test_74 ;



static struct TESTCASE_TestInvalidGeometry_test_79
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestInvalidGeometry_test_79()
      : TESTNGPP_NS::TestCase
        ( "inValid Geometry getPerimeter(100.01,74.991) should be 0"
        , "InvalidGeometry"
        , "TestGeometry"
        , 0
        , "TestGeometry.h"
        , 79)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestInvalidGeometry();
      }
      else
      {
         belongedFixture = dynamic_cast<TestInvalidGeometry*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_79()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestInvalidGeometry* belongedFixture;
} testcase_instance_TestInvalidGeometry_test_79 ;



static struct TESTCASE_TestInvalidGeometry_test_84
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestInvalidGeometry_test_84()
      : TESTNGPP_NS::TestCase
        ( "inValid Geometry isValid(100.01,74.991) should be 0"
        , "InvalidGeometry"
        , "TestGeometry"
        , 0
        , "TestGeometry.h"
        , 84)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestInvalidGeometry();
      }
      else
      {
         belongedFixture = dynamic_cast<TestInvalidGeometry*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_84()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestInvalidGeometry* belongedFixture;
} testcase_instance_TestInvalidGeometry_test_84 ;



static TESTNGPP_NS::TestCase* g_TESTCASEARRAY_TestInvalidGeometry[] = {
&testcase_instance_TestInvalidGeometry_test_74,
&testcase_instance_TestInvalidGeometry_test_79,
&testcase_instance_TestInvalidGeometry_test_84,
0
};




/*static*/ TESTNGPP_NS::TestFixtureDesc test_fixture_desc_instance_TestGeometry
   ( "Geometry"
   , "TestGeometry.h"
   , g_TESTCASEARRAY_TestGeometry
   , (sizeof(g_TESTCASEARRAY_TestGeometry)/sizeof(g_TESTCASEARRAY_TestGeometry[0])) - 1
   );



/*static*/ TESTNGPP_NS::TestFixtureDesc test_fixture_desc_instance_TestInvalidGeometry
   ( "InvalidGeometry"
   , "TestGeometry.h"
   , g_TESTCASEARRAY_TestInvalidGeometry
   , (sizeof(g_TESTCASEARRAY_TestInvalidGeometry)/sizeof(g_TESTCASEARRAY_TestInvalidGeometry[0])) - 1
   );



static TESTNGPP_NS::TestFixtureDesc* array_of_fixture_desc_TestGeometry[] = {
&test_fixture_desc_instance_TestGeometry,
&test_fixture_desc_instance_TestInvalidGeometry,
0
};




static TESTNGPP_NS::TestSuiteDesc test_suite_desc_instance_TestGeometry
   ( "TestGeometry"
   , array_of_fixture_desc_TestGeometry
   , (sizeof(array_of_fixture_desc_TestGeometry)/sizeof(array_of_fixture_desc_TestGeometry[0])) - 1
   );



extern "C" DLL_EXPORT TESTNGPP_NS::TestSuiteDesc* ___testngpp_test_suite_desc_getter() {
   return &test_suite_desc_instance_TestGeometry;
}


